﻿
using AutoResetEvent上位机案例;

var controller = new DeviceController();
Console.WriteLine("上位机运行中 (按ESC退出)...");
controller.StartWork();

while (Console.ReadKey(true).Key != ConsoleKey.Escape) ;
